package org.example.commerce.imp.service;

import com.github.pagehelper.PageInfo;
import org.example.commerce.api.beans.OrderInfo;
import org.example.commerce.api.beans.OrderParam;
import org.example.commerce.api.beans.SelectOrderParam;
import org.example.commerce.dao.entity.Order;
import org.example.commerce.dao.vo.OrderVo;
import org.example.common.response.R;

import java.util.List;

public interface OrderService {

    String generatecode();

    R<OrderInfo> createOrder(OrderParam request);

    R<List<OrderVo>> selectOrder(SelectOrderParam request);

    PageInfo<Order> selectAllOrder(Integer page, Integer pageSize);

    R<String> deleteOrderByCode(String code);
}
